package com.onlineclass.school.service.impl;

import com.onlineclass.beas.School;
import com.onlineclass.beas.UserInfo;
import com.onlineclass.school.mapper.SchoolMapper;
import com.onlineclass.school.service.ISchoolNameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SchoolNameService implements ISchoolNameService {

    @Autowired
    SchoolMapper schoolMapper;
    @Override
    public List<School> getSchoolNmae() {
        return schoolMapper.selectSchoolName();
    }

    @Override
    public List<UserInfo> getSchoolInfo(int id) {
        return schoolMapper.selectSchoolInfo(id);
    }
}
